#include "record.h"

void record_iterator_init(record_app_data_t* record_app_data)
{
    record_app_data->file_iterator = file_iterator_new("/sdcard/record", FILE_TYPE_AUDIO, NULL);
    assert(record_app_data->file_iterator != NULL);

    record_app_data->sum_track_no = file_iterator_get_count(record_app_data->file_iterator);
    record_app_data->track_no = 0;
}

void record_iterator_deinit(record_app_data_t* record_app_data)
{
    file_iterator_delete(record_app_data->file_iterator);
    record_app_data->file_iterator = NULL;
}